/* 
 * File:   subsystem.h
 * Author: skyro
 *
 * Created on December 17, 2010, 11:14 AM
 */

#ifndef _SUBSYSTEM_H
#define	_SUBSYSTEM_H


#include "../common/types.h"
#include "../common/util.h"
#include "config.h"
#include "mem.h"

#define BUFFER_SIZE 1024

using namespace std;

class root
{
public:
    root();
    ~root();
    Error startup(const string& cfgFilename);
    string getVersion();

public:
    Config m_cfgManager;
    HeapAllocator* m_pStaticHeap;

private:
    string m_version;
};

typedef Singleton<root> RootManager;

#endif	/* _SUBSYSTEM_H */

